import { createRequest } from '/@/api/service';
const module = 'ib/video/v1/CamerasApi';

/**
 * @function 实时预览(多URLS)
 * @param data
 * @param header
 * @returns {Promise}
 */
function CAMERAS_PREVIEW_URLS(
  data: CamerasApi.CamerasPreviewUrlsReq,
  header: object = {},
): Promise<CamerasApi.CamerasPreviewUrlsResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}/camerasPreviewUrls`,
    data,
    header,
    'POST',
  );
}

export { CAMERAS_PREVIEW_URLS };
